home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CPrefsFile & Friends 1.0 / COOPrefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  944 b   |  62 lines  |  [TEXT/KAHL]

  1. /*
  2.  * COOPrefs.h
  3.  *
  4.  */
  5.  
  6.  
  7.  
  8. /********************************/
  9.  
  10. #pragma once
  11.  
  12. /********************************/
  13.  
  14. #include "CPrefsFile.h"
  15.  
  16. /********************************/
  17.  
  18. typedef struct {
  19.     short defaultOverwriteExistingFiles;
  20.     short sleepTime;
  21.     short updateTicks;
  22.     short fontSize;
  23.     Str63 fontName;
  24. } laconicPrefs, *laconicPrefsPtr, **laconicPrefsHndl;
  25.  
  26. /********************************/
  27.  
  28.  
  29.  
  30. class COOPrefs : public CPrefsFile {
  31.     
  32. public:
  33.     
  34.     const static OSType        itsFileType;
  35.     
  36.     void            ILaconicPrefs(void);
  37.     
  38.     Boolean        getDefaultOverwriteExistingFiles(void);
  39.     
  40.     short            getSleepTime(void);
  41.     short            getUpdateTicks(void);
  42.     
  43.     void            getFontSize(short *theFontSize);
  44.     void            getFontName(Str63 theFontName);
  45.     
  46. protected:
  47.     
  48.     laconicPrefsHndl        itsPrefsHndl;
  49.     
  50.     void            assignToPrefsHndl(Handle theHandle);
  51.     Handle        valueOfPrefsHndl(void);
  52.     short            sizeOfPrefs(void);
  53.     
  54. private:
  55.     
  56. } ;
  57.  
  58.  
  59.  
  60. /********************************/
  61.  
  62. extern COOPrefs *gOOPrefs;